<#if pageRecords?exists >
[
    <#list pageRecords as each>
    {
		id:"${each_index}",	
<@ww.action id="actionResource" executeResult="false" namespace="/admin" name="readActionByNS" ><@ww.param name="NSName" >${each}</@ww.param><@ww.param name="pageSize" >1000</@ww.param></@ww.action>
<#assign result = attr.actionResource.pageRecords?if_exists>
		<#if result?exists&&result?has_content >
		leaf:false,
		children : [ 
			<#list result as eachOne>
			{
			id:"${eachOne.id?if_exists}",	
			leaf:true,
			NSName: "${eachOne.NSName?if_exists}",		
			name : "${eachOne.name?if_exists}"		
			}
			<#if eachOne_has_next>,</#if>
			</#list>
		],
		<#else>
		leaf:true,
		</#if>
		name : "<#if each!="">${each}<#else>系统根模块</#if>",
		NSName : "<#if each!="">${each}<#else>系统根模块</#if>"			
	}	
	<#if each_has_next>,</#if>
	</#list>
]	
</#if>	